// import './assets/main.css';

import { createApp } from 'vue';
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

import { lazyPlugin } from './directives';

//main.js

// 引入全局组件插件
import { componentPlugin } from '@/components';

import App from './App.vue';
import router from './router';

import 'normalize.css';
import '@/assets/styles/common.less';

const pinia = createPinia();
// 持久化插件
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);
app.use(ElementPlus);
app.use(lazyPlugin);
app.use(componentPlugin);
app.use(pinia);
app.use(router);

app.mount('#app');
